<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link  rel="stylesheet" type="text/css" href="../resources/editormd/css/editormd.css" />
    <script type="text/javascript" src="../resources/jquery-easyui-1.5.3/jquery.min.js"></script>
    <script type="text/javascript" src="../resources/editormd/editormd.min.js"></script>
</head>

<body style="background-color: #222222; padding-bottom: 0">

<!--<div th:insert="~{header :: nav}"></div>-->

<div id="my-editormd" >
    <textarea id="my-editormd-markdown-doc" name="my-editormd-markdown-doc" style="display:none;"></textarea>
    <!-- 注意：name属性的值-->
    <textarea id="my-editormd-html-code" name="my-editormd-html-code" style="display:none;"></textarea>
</div>

</body>

</html>
<script type="text/javascript">
    $(function() {
        editormd("my-editormd", {//注意1：这里的就是上面的DIV的id属性值
            width   : "90%",
            height  : 640,
            syncScrolling : "single",
            path    : "../resources/editormd/lib/",//注意2：你的路径
            saveHTMLToTextarea : true//注意3：这个配置，方便post提交表单
        });
    });
</script>
